import java.util.Scanner;

public class xing
{

	public static void main(String args[])
	{
		Scanner reader = new Scanner(System.in);
		int n =reader.nextInt();
		printStar(n);

	}
	private static void printStar(int n)
	{

		for(int i=0;i<n;i++)
		{       
		for(int j=0;j<2*n;j++)
		{

			if(j<n-i)
			System.out.print(" ");
			if(j>=n-i && j<=n+i)
			System.out.print("*");

		}
		System.out.println();

		}
		for(int i=1;i<n;i++)
		{

			System.out.print(" ");
			for(int j=0;j<2*n-i;j++)
			{

				if(j<i)
				System.out.print(" ");
				if(j>=i && j<2*n-i-1)
				System.out.print("*");
 
			}

		System.out.println();

		}
	}

}